<include file="public@header"/>
</head>
<body>
<div class="lyear-layout-web">
    <div class="lyear-layout-container">
        <!--页面主要内容-->
        <main class="lyear-layout-content">
          
            <div class="container-fluid">
            
                <div class="row">
                   <div class="col-md-12">
                        <div class="card">
                            <ul class="nav nav-tabs">
                                <li class="active"><a>所有数据</a></li>
                                <li><a href="{:url('theme/fileArrayDataEdit',['tab'=>$tab,'var'=>$var,'file_id'=>$file_id,'widget'=>$widget])}">添加数据</a>
                                </li>
                            </ul>
                            <div class="card-body">
                                <form method="post" class="js-ajax-form margin-top-20">
                                    <div class="table-responsive">
                                        <table class="table table-hover" >
                                            <thead>
                                            <tr>
                                                <foreach name="array_item" item="vo">
                                                    <th>{$vo.title}</th>
                                                </foreach>
                                                <th width="120">{:lang('ACTIONS')}</th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            <foreach name="array_items" item="item" key="itemKey">
                                                <tr>
                                                    <foreach name="array_item" item="vo">
                                                        <td>{$item[$key]|default=''}</td>
                                                    </foreach>
                                                    <td>
                                                        <a href="{:url('theme/fileArrayDataEdit',['tab'=>$tab,'var'=>$var,'file_id'=>$file_id,'widget'=>$widget,'item_index'=>$itemKey])}">编辑</a>
                                                        <a href="{:url('theme/fileArrayDataDelete',['tab'=>$tab,'var'=>$var,'file_id'=>$file_id,'widget'=>$widget,'item_index'=>$itemKey])}"
                                                           class="js-ajax-delete">删除</a>
                                                    </td>
                                                </tr>
                                            </foreach>
                                            </tbody>
                                        </table>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </main>
    </div>
</div>
<script src="__TMPL__/public/assets/js/admin.js"></script>
<script>
    function confirm() {
        return true;
    }
</script>
</body>
</html>